package com.blacksheep.mtm.service;

import com.blacksheep.mtm.pojo.common.DataTablesResult;
import com.blacksheep.mtm.pojo.manager.TbDevice;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

public interface DeviceService {
    DataTablesResult getDeviceList(int draw, int start, int length, int[] state,String[] type, String search, String minDate, String maxDate, String orderCol, String orderDir);

    DataTablesResult getWSDeviceList(int draw, int start, int length, int[] state, String search, String minDate, String maxDate, String orderCol, String orderDir);

    TbDevice insert(TbDevice device);
    TbDevice insertBatch(TbDevice device,int num);

    TbDevice updateDevice(TbDevice device);

    TbDevice alertState(Integer id,Integer state);

    int getDeviceCountByType(String type);

    List<String> getIceBoxList(String code);

    void download(HttpServletResponse response) throws IOException;
}
